<div id="home_works_wrapper" style="touch-action: none">
    <div>
        <?php if (isset($workList) && count($workList) > 0) { ?>
            <div class="pull-action pull-down">
                <span class="am-icon-arrow-down pull-label">下拉刷新</span>
                <span class="am-icon-spinner am-icon-spin"></span>
            </div>
        <?php } ?>
        <div class="show_list_content"
             style="line-height:1.2"><?php require("{$CfgPara->root}/view/works_show_list_content.app.v.php") ?></div>
        <?php if (isset($workList) && count($workList) > 0) { ?>
            <div class="pull-action pull-up">
                <span class="am-icon-arrow-up pull-label">上拉加载更多</span>
                <span class="am-icon-spinner am-icon-spin"></span>
            </div>
        <?php } ?>
    </div>
</div>
<script type="text/javascript">
    wrapper_height = $(window).height() - page_header_height - $("#list-sele-bar").outerHeight();
    // 新加的热门选择栏高度
    bar_height = $('#list-sele-bar2').outerHeight();
    if (bar_height != undefined)
        wrapper_height -= bar_height;
    myScrollList = new ScrollLoad({
        params: {
            wrapper: '#home_works_wrapper',
            start: 1,
            //工作区可见高度减去页头和选择栏
            screen_height: wrapper_height
        },
        post: {
            controller: 'works_show_list',
            list_type: <?= $InputData['list_type'] ?>,
        }
    });
    myScrollList.init();
    document.getElementById('home_works_wrapper')
        .addEventListener('touchmove', function (e) {
            e.preventDefault();
        }, false);
</script>